<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Image extends Model
{
    /**
     * 可批量填充的字段
     */
    protected $fillable = ['type', 'path'];

    /**
     * 与用户表的对应关系
     */
    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
